import request from '@/utils/request'

export function orderList(query) {
  return request({
    url: '/shop/order/list',
    method: 'post',
    data: query
  })
}

export function deleteObj(id) {
  return request({
    url: '/shop/order/' + id,
    method: 'delete'
  })
}

export function updateOrSave(data) {
  return request({
    url: '/shop/order',
    method: 'put',
    data
  })
}
